/**
 * 按需加载ant-design
 */

import Vue from 'vue'
import {LocaleProvider, Button, Icon, Card, notification, message, Modal} from 'ant-design-vue'

Vue.use(notification)
Vue.use(message)

notification.config({
  placement: 'topRight',
  duration: 2
})
Vue.prototype.$message = message
Vue.prototype.$notify = notification
Vue.prototype.$info = Modal.info
Vue.prototype.$success = Modal.success
Vue.prototype.$error = Modal.error
Vue.prototype.$warning = Modal.warning
Vue.prototype.$confirm = Modal.confirm
Vue.prototype.$destroyAll = Modal.destroyAll

Vue.use(LocaleProvider)
Vue.use(Button)
Vue.use(Icon)
Vue.use(Card)
Vue.use(Modal)
